package com.woniuxy.company5.mapper;

import com.woniuxy.company5.entity.UserPermission;

import com.woniuxy.company5.vo.TreeNode;
import com.woniuxy.company5.vo.UserPermissionVo;


import java.util.List;

/**
* @author Admin
* @description 针对表【user_permission】的数据库操作Mapper
* @createDate 2022-12-05 20:37:05
* @Entity com.woniuxy.company5.entity.UserPermission
*/
public interface UserPermissionMapper {

    List<String> selectByAccount(String account);

//    查询所有权限
List<TreeNode> getPermissionByParentId(Integer fatherId);

//根据id查询权限
    List<Integer> getPermissionByRole(Integer id);

    List<UserPermission> myMenu(long id);

    List<UserPermissionVo> selectMenu(Integer fatherId);


    int deleteByPrimaryKey(Long id);

    int insert(UserPermission record);

    int insertSelective(UserPermission record);

    UserPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserPermission record);

    int updateByPrimaryKey(UserPermission record);

}
